home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / cfengine-1.5.3 / inputs / cf.motd.example < prev    next >
Encoding:
Text File  |  1998-11-18  |  903 b   |  51 lines

  1. ##################################################################
  2. #
  3. # cf.motd
  4. #
  5. # This file is used to set the message of the day file on
  6. # each host
  7. #
  8. ##################################################################
  9.  
  10.  #####
  11.  #
  12.  # BEGIN cf.motd
  13.  #
  14.  #####
  15.  
  16. control:
  17.  
  18.    #
  19.    # This points to the file containing general text
  20.    #
  21.  
  22.    masterfile = ( /iu/nexus/local/iu/etc/motd-master )
  23.    addendum   = ( /iu/nexus/local/iu/etc/motd-nexus  )
  24.  
  25. editfiles:
  26.  
  27.       { /etc/motd
  28.  
  29.       BeginGroupIfFileIsNewer "$(masterfile)"
  30.         AutoCreate
  31. #        IncrementPointer "1"
  32.         DeleteLinesAfterThisMatching ".*"
  33.         InsertFile "$(masterfile)"
  34.       EndGroup
  35.       }
  36.  
  37.    NOTnexus::
  38.  
  39.       { /etc/motd
  40.  
  41.       BeginGroupIfNoLineContaining "connecting"
  42.         InsertFile "$(addendum)"      
  43.       EndGroup
  44.       }
  45.  
  46.  #####
  47.  #
  48.  # EGIN cf.motd
  49.  #
  50.  #####
  51.